home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 101-125 / disk_101 / startups / readme < prev    next >
Text File  |  1992-05-06  |  1KB  |  40 lines

  1.  
  2. If you are linking your C programs with "Astartup.obj" this file is for
  3. you!  When working with Lattice C you have the option of using
  4. LStartup.obj, which makes huge executables, or Astartup.obj which is tiny.
  5. The problem with Astartup.obj is that it is buggy.  This distribution
  6. contains three replacements.  As a bonus, these files add about half the
  7. number of bytes to a program as compared to Astartup.obj.
  8.  
  9. *    BothStartup.obj
  10. *
  11. *    A drop in replacement for Astartup.obj
  12. *    For Workbench programs, or CLI programs with or without command
  13. *    line parameters.
  14.  
  15. *    WBStartup.obj
  16. *
  17. *    For Workbench programs, or CLI programs that require no command
  18. *    line parameters.
  19.  
  20. *    CLIStartup.obj
  21. *
  22. *    For CLI programs that require command line parameters.
  23. *    If started from Workbench, it tells the user to start it
  24. *    from the CLI.
  25.  
  26. All three follow the standard conventions for argc and argv.  When started
  27. from the CLI argc will be at least 1.  argv[0] will contain the command
  28. name, and argv[X] will contain that parameter.
  29. When started from the Workbench, argc will be zero and argv will contain
  30. the pointer to the Workbench message.  (The old 2092 byte Astartup.obj
  31. pushed these on the stack in the wrong order.  It also forgot to close
  32. the dos.library when started from the CLI)
  33.  
  34.     Bryce Nesbitt
  35.     1712 Marin Ave
  36.     Berkeley, Ca  94707-2206
  37.  
  38.     ucbvax!cogsci!bryce -or- bryce@cogsci.Berkeley.EDU
  39.  
  40.